//
//  SpringBoardViewDeleteButton.m
//  SpringBoardView
//
//  Created by Kishikawa Katsumi on 10/01/24.
//  Copyright 2010 Kishikawa Katsumi. All rights reserved.
//

#import "SpringBoardViewDeleteButton.h"

@implementation SpringBoardViewDeleteButton

static UIImage *buttonImage;
static UIImage *pressedButtonImage;

+ (void)initialize {
	buttonImage = [UIImage imageNamed:@"closebox.png"];
	pressedButtonImage = [UIImage imageNamed:@"closebox_pressed.png"];
}

+ (SpringBoardViewDeleteButton *)button {
	return [[[SpringBoardViewDeleteButton alloc] init] autorelease];
}

- (id)init {
	if (self = [super init]) {
		[self setFrame:CGRectMake(-3.0f, -8.0f, 29.0f, 29.0f)];
		[self setImage:buttonImage forState:UIControlStateNormal];
		[self setImage:pressedButtonImage forState:UIControlStateHighlighted];
	}
	return self;
}

- (void)dealloc {
	[super dealloc];
}

@end
